<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增网点管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content pt-md">
        <form class="form-horizontal" id="form-location-add">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">网点名称：</label>
                <div class="col-sm-8">
                    <input name="locationName" class="form-control" maxlength="50" type="text" required>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">网点图标：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="iconUrl" class="form-control" maxlength="100" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">网点编号：</label>
                <div class="col-sm-8">
                    <input name="number" class="form-control" type="text"  maxlength="50" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">显示顺序：</label>
                <div class="col-sm-8">
                    <input name="orderNum" class="form-control" type="text" maxlength="10" required  oninput = "value=value.replace(/[^\d]/g,'')">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">负责人：</label>
                <div class="col-sm-8">
                    <input name="leader" class="form-control"  maxlength="50"  type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input name="phone" class="form-control" maxlength="11" type="text"  oninput = "value=value.replace(/[^\d]/g,'')">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "gy/location"
        $("#form-location-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-location-add').serialize());
            }
        }
    </script>
</body>
</html>